package com.tinyblog.ajax;

import org.jdom.Element;

public class News {
	private String id = "";
	private String title = "";
	private String submittime = "";
	public News() {
		
	}
	public News(Element element) {
		this.id = element.getAttributeValue("id");
		this.title = element.getChildText("title");
		this.submittime = element.getChildText("submittime");
	}
	public News(String id,String title,String submittime) {
		this.id = id;
		this.title = title;
		this.submittime = submittime;
	}
	public String getId() {
		return this.id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getTitle() {
		return this.title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getSubmittime() {
		return this.submittime;
	}
	public void setSubmittime(String submittime) {
		this.submittime = submittime;
	}
}
